<div class="content-box row">
  {if count($shortnews) > 0}
    <div id="shortnew-carousel" class="carousel slide" data-ride="carousel">
      <!-- Wrapper for slides -->
      <div class="carousel-inner">
        {foreach $shortnews as $shortnew}
          <div class="item {if $iterator->first}active{/if}">
            {if $shortnew->getPhoto()}
              <h2 style="padding-left: 10px;">{$shortnew->getTitle()}</h2>
              <br>
              <div class="col-xs-4">
                <img src="{$basePath}/content/shortnew/{$shortnew->getPhoto()}/image.jpg" width="100%">
              </div>
              <div class="col-xs-8" style="padding-left: 0px;">
                {$shortnew->getContent()}
              </div>
              {if $shortnew->getLink()}
                <div class="button-row right" style="position: absolute; bottom: 0; right: 10px;">
                  <a class="button small" href="{$shortnew->getLink()}">více</a>
                </div>
              {/if}
              <div class="reset"></div>
            {else}
              <div class="col-xs-12">
                <h2>{$shortnew->getTitle()}</h2>
                <br>
                <div>
                  {$shortnew->getContent()}
                </div>
              </div>

              {if $shortnew->getLink()}
                <div class="button-row right" style="padding-right: 10px;">
                  <a class="button small" href="{$shortnew->getLink()}">více</a>
                </div>
              {/if}
            {/if}


          </div>
        {/foreach}
      </div>
      <!-- Controls -->
      <div>
        <a class="left carousel-control" href="#shortnew-carousel" role="button" data-slide="prev">
          <span class="glyphicon glyphicon-chevron-left"></span>
        <a class="right carousel-control" href="#shortnew-carousel" role="button" data-slide="next">
          <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
        </a>
      </div>
    </div>
  {else}
    Momentálně nejsou k dispozici žádné novinky
  {/if}
</div>
